Carbon


DMGetDisplayMode

Header: Displays.h Carbon status: Supported

Obtains the current display mode of a specified video display.

OSErr DMGetDisplayMode (
    GDHandle theDevice, 
    VDSwitchInfoPtr switchInfo
);
theDevice

A handle to the GDevice structure for the video device whose display mode you wish to obtain.

switchInfo

On return, a pointer to an internal Display Manager structure containing display mode information.

function result

A result code.

SPECIAL CONSIDERATIONS

Because this function may move or purge memory blocks or access handles, you cannot call it at interrupt time.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when DisplayLib 2.0 (or later) or DisplayLib68k 2.0 (or later) is installed. Exported by CarbonLib 1.0 and later, DisplayLib 2.0 and later, and by DisplayLib68k 2.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 3/8/2000)